using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;

namespace RideMe.Presentation.Controls.Common
{
    public partial class HeadingControl : UserControl
    {
        public HeadingControl()
        {
            InitializeComponent();
        }

        /// <summary>
        /// Gets or sets the heading for the control.
        /// </summary>
        public string Caption
        {
            get
            {
                return this.heading.Text;
            }
            set
            {
                this.heading.Text = value;
            }
        }

        /// <summary>
        /// Gets the alignment of the text.
        /// </summary>
        public ContentAlignment TextAlignment
        {
            get
            {
                return this.heading.TextAlign;
            }
            set
            {
                this.heading.TextAlign = value;
            }
        }

        /// <summary>
        /// Gets or sets the font of the caption.
        /// </summary>
        public Font CaptionFont
        {
            get
            {
                return this.heading.Font;
            }
            set
            {
                this.heading.Font = value;
            }
        }

        /// <summary>
        /// Gets the color of the rule.
        /// </summary>
        public Color RuleColor
        {
            get
            {
                return this.line.BackColor;
            }
            set
            {
                this.line.BackColor = value;
            }
        }
    }
}
